Fluent Assertions Documentation
FluentAssertions.Equivalency Namespace / SelfReferenceEquivalencyOptions<TSelf> Class / PreferringDeclaredMemberTypes Method
In This Topic
    PreferringDeclaredMemberTypes Method
    In This Topic
    Instructs the structural equality comparison to prefer the declared types of the members when executing assertions.
    Syntax
    public TSelf PreferringDeclaredMemberTypes()
    Remarks
    In reality, the declared types of the members are only known for the members of the root object, or the objects in a root collection. Beyond that, FluentAssertions only knows the run-time types of the members.
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also